import { baseRequest } from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/biz/nccCode/` + url, ...arg)

/**
 * biz_ncc_codeApi接口管理器
 *
 * @author xsl
 * @date  2025/05/09 15:01
 **/
export default {
	// 获取biz_ncc_code分页
	bizNccCodePage(data) {
		return request('page', data, 'get')
	},
	// 提交biz_ncc_code表单 edit为true时为编辑，默认为新增
	bizNccCodeSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除biz_ncc_code
	bizNccCodeDelete(data) {
		return request('delete', data)
	},
	// 获取biz_ncc_code详情
	bizNccCodeDetail(data) {
		return request('detail', data, 'get')
	}
}
